package com.jk.common.constant;

/**
 * 缓存的key 常量
 * 
 * @author happy
 */
public class CacheConstants
{
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";


    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 虚拟ID redis key
     */
    public static final String FICTITIOUS_ID = "fictitious_id:";

    /**
     * 虚拟ID redis key
     */
    public static final String RELATION_MODULE_LIST = "relation_module_list:";

    /**
     * mqtt主题 白名单 redis key
     */
    public static final String TOPIC_WHITE = "topic_white:";

    /**
     * 页面开始过站设备下拉信息  redis key
     */
    public static final String EQUIPMENT_INFO = "equipment_info:";


    /**
     * 载体条码缓存 redis key
     */
    public static final String CARRIER_SN_LIST = "carrier_sn_list:";

    /**
     * 组件条码缓存 redis key
     */
    public static final String MODULE_SN_LIST = "module_sn_list:";

    /**
     * 包装批次号缓存 redis key
     */
    public static final String BOX_NO_KEY = "box_lot_no:";

    /**
     * 看板 查询在线设备  key redis
     */
    public static final String QUERY_ON_LINE_KANBAN= "query_on_line_kanban";

    /**
     * kanban 查询    在线车间  key redis
     */
    public static final String QUERY_ON_LINE_WORKSHOP= "query_on_line_workshop";

    /**
     * 通用心跳前缀_mqtt
     */
    public static final String MQTT_QUERY_ON_LIN_PREFIX= "umes_mqtt_query_on_line";


    /**
     * 设备看板心跳主题类型
     */
    public static final String ONLINE_EQUIPMENT= "equipment";

    /**
     * 车间看板心跳主题类型
     */
    public static final String ONLINE_WORKSHOP= "workshop";


    /**
     * 上电工装机械手臂接受信号 主题 topic
     */
    public static final String EQUIPMENT_REGISTER_TOPIC = "pc/equipment/register";


}
